<template>
    <div class='template-body'>
        <default-tempalte v-if="template == 'default'" :keyCode="keyCode" :drawQr="printData"></default-tempalte>
        <template-fusi v-if="template == 'bjfs'" :keyCode="keyCode" :printData="printData"></template-fusi>
    </div>
</template>

<script>
import templateFusi from "./template/bjfs.vue"
import defaultTempalte from "../PrintBarcode.vue"
export default {
    name: '',
    data() { 
        return {

        }
    },
    props: {
        keyCode:{
            type:String,
            default:''
        },
        template:{
            type:String,
            default:"default"
        },
        printData:{
            type:[Array,Object],
            default(){
                return []
            }
        }
    },
    components:{
        defaultTempalte,
        templateFusi
    },
    mounted() {

    },
    methods:{

    },
}
</script>

<style lang='scss' scoped>
</style>